/*
* Copyright 2025 NXP
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"
#include "ntp_time.h"

// 全局变量，存储当前时间
int screen_digital_clock_1_hour_value;
int screen_digital_clock_1_min_value;
int screen_digital_clock_1_sec_value;

// 全局变量，存储当前日期
int current_year;
int current_month;
int current_day;

void setup_scr_screen(lv_ui *ui)
{
    static bool inited = false;     // 静态变量，程序生命周期内只创建一次
    if (inited) return;             // 已经初始化过，直接返回
    inited = true;                  // 标记为已初始化
    
    //Write codes screen
    ui->screen = lv_obj_create(NULL);
    lv_obj_set_size(ui->screen, 240, 280);
    lv_obj_set_scrollbar_mode(ui->screen, LV_SCROLLBAR_MODE_OFF);

    //Write style for screen, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->screen, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->screen, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->screen, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes screen_digital_clock_1
    char Time_str[16];
    screen_digital_clock_1_hour_value = time_info.hour;
    screen_digital_clock_1_min_value = time_info.minute;
    screen_digital_clock_1_sec_value = time_info.second;
    static bool screen_digital_clock_1_timer_enabled = false;
    lv_snprintf(Time_str, sizeof(Time_str), "%d:%02d:%02d", screen_digital_clock_1_hour_value, screen_digital_clock_1_min_value, screen_digital_clock_1_sec_value);
    ui->screen_digital_clock_1 = lv_dclock_create(ui->screen, Time_str);
    if (!screen_digital_clock_1_timer_enabled) {
        lv_timer_create(screen_digital_clock_1_timer, 1000, NULL);
        screen_digital_clock_1_timer_enabled = true;
    }
    lv_obj_set_pos(ui->screen_digital_clock_1, 15, 90);
    lv_obj_set_size(ui->screen_digital_clock_1, 209, 40);

    //Write style for screen_digital_clock_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_radius(ui->screen_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->screen_digital_clock_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_digital_clock_1, &lv_font_Acme_Regular_42, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_digital_clock_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->screen_digital_clock_1, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_digital_clock_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->screen_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->screen_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->screen_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->screen_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->screen_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes screen_datetext_1
    char date_str[16];
    current_year = time_info.year;
    current_month = time_info.month;
    current_day = time_info.day;
    ui->screen_datetext_1 = lv_label_create(ui->screen);
    lv_snprintf(date_str, sizeof(date_str), "%d/%02d/%02d", current_year, current_month, current_day);
    lv_label_set_text(guider_ui.screen_datetext_1, date_str);
    lv_obj_set_style_text_align(ui->screen_datetext_1, LV_TEXT_ALIGN_CENTER, 0);
    lv_obj_add_flag(ui->screen_datetext_1, LV_OBJ_FLAG_CLICKABLE);
    lv_obj_add_event_cb(ui->screen_datetext_1, screen_datetext_1_event_handler, LV_EVENT_ALL, NULL);
    lv_obj_set_pos(ui->screen_datetext_1, 50, 133);
    lv_obj_set_size(ui->screen_datetext_1, 140, 28);

    //Write style for screen_datetext_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->screen_datetext_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_datetext_1, &lv_font_Acme_Regular_22, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_datetext_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->screen_datetext_1, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_datetext_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->screen_datetext_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->screen_datetext_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_datetext_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->screen_datetext_1, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->screen_datetext_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->screen_datetext_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_datetext_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes screen_screen_Sliding1
    ui->screen_screen_Sliding1 = lv_tileview_create(ui->screen);
    ui->screen_screen_Sliding1_tile = lv_tileview_add_tile(ui->screen_screen_Sliding1, 0, 0, LV_DIR_RIGHT);
    lv_obj_set_pos(ui->screen_screen_Sliding1, 257, 0);
    lv_obj_set_size(ui->screen_screen_Sliding1, 240, 280);
    lv_obj_set_scrollbar_mode(ui->screen_screen_Sliding1, LV_SCROLLBAR_MODE_OFF);

    //Write style for screen_screen_Sliding1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->screen_screen_Sliding1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->screen_screen_Sliding1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->screen_screen_Sliding1, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_screen_Sliding1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_screen_Sliding1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for screen_screen_Sliding1, Part: LV_PART_SCROLLBAR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->screen_screen_Sliding1, 255, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->screen_screen_Sliding1, lv_color_hex(0xeaeff3), LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->screen_screen_Sliding1, LV_GRAD_DIR_NONE, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_screen_Sliding1, 0, LV_PART_SCROLLBAR|LV_STATE_DEFAULT);



    //Write codes screen_Bule
    ui->screen_Bule = lv_imgbtn_create(ui->screen_screen_Sliding1_tile);
    lv_obj_add_flag(ui->screen_Bule, LV_OBJ_FLAG_CHECKABLE);
    lv_imgbtn_set_src(ui->screen_Bule, LV_IMGBTN_STATE_RELEASED, NULL, &_BLUE_64x64, NULL);
    lv_imgbtn_set_src(ui->screen_Bule, LV_IMGBTN_STATE_PRESSED, NULL, &_BLUE_64x64, NULL);
    ui->screen_Bule_label = lv_label_create(ui->screen_Bule);
    lv_label_set_text(ui->screen_Bule_label, "");
    lv_label_set_long_mode(ui->screen_Bule_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->screen_Bule_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->screen_Bule, 0, LV_STATE_DEFAULT);
    lv_obj_set_pos(ui->screen_Bule, 7, 110);
    lv_obj_set_size(ui->screen_Bule, 64, 64);

    //Write style for screen_Bule, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->screen_Bule, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_Bule, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_Bule, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_Bule, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_Bule, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->screen_Bule, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_Bule, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for screen_Bule, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Bule, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->screen_Bule, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->screen_Bule, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_font(ui->screen_Bule, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_opa(ui->screen_Bule, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_width(ui->screen_Bule, 0, LV_PART_MAIN|LV_STATE_PRESSED);

    //Write style for screen_Bule, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Bule, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->screen_Bule, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->screen_Bule, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_font(ui->screen_Bule, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_opa(ui->screen_Bule, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_width(ui->screen_Bule, 0, LV_PART_MAIN|LV_STATE_CHECKED);

    //Write style for screen_Bule, Part: LV_PART_MAIN, State: LV_IMGBTN_STATE_RELEASED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Bule, 0, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);
    lv_obj_set_style_img_opa(ui->screen_Bule, 255, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);

    //Write codes screen_Set
    ui->screen_Set = lv_imgbtn_create(ui->screen_screen_Sliding1_tile);
    lv_obj_add_flag(ui->screen_Set, LV_OBJ_FLAG_CHECKABLE);
    lv_imgbtn_set_src(ui->screen_Set, LV_IMGBTN_STATE_RELEASED, NULL, &_Set_64x64, NULL);
    lv_imgbtn_set_src(ui->screen_Set, LV_IMGBTN_STATE_PRESSED, NULL, &_Set_64x64, NULL);
    ui->screen_Set_label = lv_label_create(ui->screen_Set);
    lv_label_set_text(ui->screen_Set_label, "");
    lv_label_set_long_mode(ui->screen_Set_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->screen_Set_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->screen_Set, 0, LV_STATE_DEFAULT);
    lv_obj_set_pos(ui->screen_Set, 88, 110);
    lv_obj_set_size(ui->screen_Set, 64, 64);

    //Write style for screen_Set, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->screen_Set, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_Set, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_Set, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_Set, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_Set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->screen_Set, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_Set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for screen_Set, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Set, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->screen_Set, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->screen_Set, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_font(ui->screen_Set, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_opa(ui->screen_Set, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_width(ui->screen_Set, 0, LV_PART_MAIN|LV_STATE_PRESSED);

    //Write style for screen_Set, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Set, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->screen_Set, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->screen_Set, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_font(ui->screen_Set, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_opa(ui->screen_Set, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_width(ui->screen_Set, 0, LV_PART_MAIN|LV_STATE_CHECKED);

    //Write style for screen_Set, Part: LV_PART_MAIN, State: LV_IMGBTN_STATE_RELEASED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Set, 0, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);
    lv_obj_set_style_img_opa(ui->screen_Set, 255, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);

    //Write codes screen_WIFI
    ui->screen_WIFI = lv_imgbtn_create(ui->screen_screen_Sliding1_tile);
    lv_obj_add_flag(ui->screen_WIFI, LV_OBJ_FLAG_CHECKABLE);
    lv_imgbtn_set_src(ui->screen_WIFI, LV_IMGBTN_STATE_RELEASED, NULL, &_wifi_64x64, NULL);
    lv_imgbtn_set_src(ui->screen_WIFI, LV_IMGBTN_STATE_PRESSED, NULL, &_wifi_64x64, NULL);
    ui->screen_WIFI_label = lv_label_create(ui->screen_WIFI);
    lv_label_set_text(ui->screen_WIFI_label, "");
    lv_label_set_long_mode(ui->screen_WIFI_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->screen_WIFI_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->screen_WIFI, 0, LV_STATE_DEFAULT);
    lv_obj_set_pos(ui->screen_WIFI, 168, 110);
    lv_obj_set_size(ui->screen_WIFI, 64, 64);

    //Write style for screen_WIFI, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->screen_WIFI, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_WIFI, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_WIFI, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_WIFI, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_WIFI, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->screen_WIFI, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_WIFI, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for screen_WIFI, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
    lv_obj_set_style_img_recolor_opa(ui->screen_WIFI, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->screen_WIFI, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->screen_WIFI, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_font(ui->screen_WIFI, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_opa(ui->screen_WIFI, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_width(ui->screen_WIFI, 0, LV_PART_MAIN|LV_STATE_PRESSED);

    //Write style for screen_WIFI, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
    lv_obj_set_style_img_recolor_opa(ui->screen_WIFI, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->screen_WIFI, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->screen_WIFI, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_font(ui->screen_WIFI, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_opa(ui->screen_WIFI, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_width(ui->screen_WIFI, 0, LV_PART_MAIN|LV_STATE_CHECKED);

    //Write style for screen_WIFI, Part: LV_PART_MAIN, State: LV_IMGBTN_STATE_RELEASED.
    lv_obj_set_style_img_recolor_opa(ui->screen_WIFI, 0, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);
    lv_obj_set_style_img_opa(ui->screen_WIFI, 255, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);

    //Write codes screen_Weather
    ui->screen_Weather = lv_imgbtn_create(ui->screen_screen_Sliding1_tile);
    lv_obj_add_flag(ui->screen_Weather, LV_OBJ_FLAG_CHECKABLE);
    lv_imgbtn_set_src(ui->screen_Weather, LV_IMGBTN_STATE_RELEASED, NULL, &_weather_71x71, NULL);
    lv_imgbtn_set_src(ui->screen_Weather, LV_IMGBTN_STATE_PRESSED, NULL, &_weather_71x71, NULL);
    ui->screen_Weather_label = lv_label_create(ui->screen_Weather);
    lv_label_set_text(ui->screen_Weather_label, "");
    lv_label_set_long_mode(ui->screen_Weather_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->screen_Weather_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->screen_Weather, 0, LV_STATE_DEFAULT);
    lv_obj_set_pos(ui->screen_Weather, 42, 35);
    lv_obj_set_size(ui->screen_Weather, 71, 71);

    //Write style for screen_Weather, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->screen_Weather, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_Weather, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_Weather, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_Weather, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_Weather, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->screen_Weather, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_Weather, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for screen_Weather, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Weather, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->screen_Weather, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->screen_Weather, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_font(ui->screen_Weather, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_opa(ui->screen_Weather, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_width(ui->screen_Weather, 0, LV_PART_MAIN|LV_STATE_PRESSED);

    //Write style for screen_Weather, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Weather, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->screen_Weather, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->screen_Weather, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_font(ui->screen_Weather, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_opa(ui->screen_Weather, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_width(ui->screen_Weather, 0, LV_PART_MAIN|LV_STATE_CHECKED);

    //Write style for screen_Weather, Part: LV_PART_MAIN, State: LV_IMGBTN_STATE_RELEASED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Weather, 0, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);
    lv_obj_set_style_img_opa(ui->screen_Weather, 255, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);

    //Write codes screen_AI_tack
    ui->screen_AI_tack = lv_imgbtn_create(ui->screen_screen_Sliding1_tile);
    lv_obj_add_flag(ui->screen_AI_tack, LV_OBJ_FLAG_CHECKABLE);
    lv_imgbtn_set_src(ui->screen_AI_tack, LV_IMGBTN_STATE_RELEASED, NULL, &_AI2_64x64, NULL);
    lv_imgbtn_set_src(ui->screen_AI_tack, LV_IMGBTN_STATE_PRESSED, NULL, &_AI2_64x64, NULL);
    ui->screen_AI_tack_label = lv_label_create(ui->screen_AI_tack);
    lv_label_set_text(ui->screen_AI_tack_label, "");
    lv_label_set_long_mode(ui->screen_AI_tack_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->screen_AI_tack_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->screen_AI_tack, 0, LV_STATE_DEFAULT);
    lv_obj_set_pos(ui->screen_AI_tack, 127, 38);
    lv_obj_set_size(ui->screen_AI_tack, 64, 64);

    //Write style for screen_AI_tack, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->screen_AI_tack, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_AI_tack, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_AI_tack, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_AI_tack, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_AI_tack, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->screen_AI_tack, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_AI_tack, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for screen_AI_tack, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
    lv_obj_set_style_img_recolor_opa(ui->screen_AI_tack, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->screen_AI_tack, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->screen_AI_tack, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_font(ui->screen_AI_tack, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_opa(ui->screen_AI_tack, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_width(ui->screen_AI_tack, 0, LV_PART_MAIN|LV_STATE_PRESSED);

    //Write style for screen_AI_tack, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
    lv_obj_set_style_img_recolor_opa(ui->screen_AI_tack, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->screen_AI_tack, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->screen_AI_tack, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_font(ui->screen_AI_tack, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_opa(ui->screen_AI_tack, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_width(ui->screen_AI_tack, 0, LV_PART_MAIN|LV_STATE_CHECKED);

    //Write style for screen_AI_tack, Part: LV_PART_MAIN, State: LV_IMGBTN_STATE_RELEASED.
    lv_obj_set_style_img_recolor_opa(ui->screen_AI_tack, 0, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);
    lv_obj_set_style_img_opa(ui->screen_AI_tack, 255, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);

    //Write codes screen_Move
    ui->screen_Move = lv_imgbtn_create(ui->screen_screen_Sliding1_tile);
    lv_obj_add_flag(ui->screen_Move, LV_OBJ_FLAG_CHECKABLE);
    lv_imgbtn_set_src(ui->screen_Move, LV_IMGBTN_STATE_RELEASED, NULL, &_movement_64x64, NULL);
    lv_imgbtn_set_src(ui->screen_Move, LV_IMGBTN_STATE_PRESSED, NULL, &_movement_64x64, NULL);
    ui->screen_Move_label = lv_label_create(ui->screen_Move);
    lv_label_set_text(ui->screen_Move_label, "");
    lv_label_set_long_mode(ui->screen_Move_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->screen_Move_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->screen_Move, 0, LV_STATE_DEFAULT);
    lv_obj_set_pos(ui->screen_Move, 48, 184);
    lv_obj_set_size(ui->screen_Move, 64, 64);

    //Write style for screen_Move, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->screen_Move, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_Move, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_Move, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_Move, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_Move, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->screen_Move, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_Move, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for screen_Move, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Move, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->screen_Move, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->screen_Move, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_font(ui->screen_Move, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_opa(ui->screen_Move, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_width(ui->screen_Move, 0, LV_PART_MAIN|LV_STATE_PRESSED);

    //Write style for screen_Move, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Move, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->screen_Move, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->screen_Move, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_font(ui->screen_Move, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_opa(ui->screen_Move, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_width(ui->screen_Move, 0, LV_PART_MAIN|LV_STATE_CHECKED);

    //Write style for screen_Move, Part: LV_PART_MAIN, State: LV_IMGBTN_STATE_RELEASED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Move, 0, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);
    lv_obj_set_style_img_opa(ui->screen_Move, 255, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);

    //Write codes screen_Code
    ui->screen_Code = lv_imgbtn_create(ui->screen_screen_Sliding1_tile);
    lv_obj_add_flag(ui->screen_Code, LV_OBJ_FLAG_CHECKABLE);
    lv_imgbtn_set_src(ui->screen_Code, LV_IMGBTN_STATE_RELEASED, NULL, &_code_64x64, NULL);
    lv_imgbtn_set_src(ui->screen_Code, LV_IMGBTN_STATE_PRESSED, NULL, &_code_64x64, NULL);
    ui->screen_Code_label = lv_label_create(ui->screen_Code);
    lv_label_set_text(ui->screen_Code_label, "");
    lv_label_set_long_mode(ui->screen_Code_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->screen_Code_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->screen_Code, 0, LV_STATE_DEFAULT);
    lv_obj_set_pos(ui->screen_Code, 127, 184);
    lv_obj_set_size(ui->screen_Code, 64, 64);

    //Write style for screen_Code, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->screen_Code, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_Code, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_Code, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_Code, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_Code, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->screen_Code, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_Code, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for screen_Code, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Code, 0, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_img_opa(ui->screen_Code, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_color(ui->screen_Code, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_font(ui->screen_Code, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_text_opa(ui->screen_Code, 255, LV_PART_MAIN|LV_STATE_PRESSED);
    lv_obj_set_style_shadow_width(ui->screen_Code, 0, LV_PART_MAIN|LV_STATE_PRESSED);

    //Write style for screen_Code, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Code, 0, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_img_opa(ui->screen_Code, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_color(ui->screen_Code, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_font(ui->screen_Code, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_text_opa(ui->screen_Code, 255, LV_PART_MAIN|LV_STATE_CHECKED);
    lv_obj_set_style_shadow_width(ui->screen_Code, 0, LV_PART_MAIN|LV_STATE_CHECKED);

    //Write style for screen_Code, Part: LV_PART_MAIN, State: LV_IMGBTN_STATE_RELEASED.
    lv_obj_set_style_img_recolor_opa(ui->screen_Code, 0, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);
    lv_obj_set_style_img_opa(ui->screen_Code, 255, LV_PART_MAIN|LV_IMGBTN_STATE_RELEASED);

    //Write codes screen_animimg_1
    ui->screen_animimg_1 = lv_animimg_create(ui->screen);
    lv_animimg_set_src(ui->screen_animimg_1, (const void **) screen_animimg_1_imgs, 31);
    lv_animimg_set_duration(ui->screen_animimg_1, 90*31);
    lv_animimg_set_repeat_count(ui->screen_animimg_1, LV_ANIM_REPEAT_INFINITE);
    lv_animimg_start(ui->screen_animimg_1);
    lv_obj_set_pos(ui->screen_animimg_1, 117, 160);
    lv_obj_set_size(ui->screen_animimg_1, 117, 114);

    //Write codes screen_Weater_Main
    ui->screen_Weater_Main = lv_img_create(ui->screen);
    lv_obj_add_flag(ui->screen_Weater_Main, LV_OBJ_FLAG_CLICKABLE);
    lv_img_set_src(ui->screen_Weater_Main, &_weather_40x40);
    lv_img_set_pivot(ui->screen_Weater_Main, 50,50);
    lv_img_set_angle(ui->screen_Weater_Main, 0);
    lv_obj_set_pos(ui->screen_Weater_Main, 100, 14);
    lv_obj_set_size(ui->screen_Weater_Main, 40, 40);

    //Write style for screen_Weater_Main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_img_recolor_opa(ui->screen_Weater_Main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_opa(ui->screen_Weater_Main, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_Weater_Main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->screen_Weater_Main, true, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes screen_Hello
    ui->screen_Hello = lv_label_create(ui->screen);
    lv_label_set_text(ui->screen_Hello, "Hi! Stay happy!");
    lv_label_set_long_mode(ui->screen_Hello, LV_LABEL_LONG_WRAP);
    lv_obj_set_pos(ui->screen_Hello, 40, 62);
    lv_obj_set_size(ui->screen_Hello, 160, 20);

    //Write style for screen_Hello, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->screen_Hello, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_Hello, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->screen_Hello, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_Hello, &lv_font_Acme_Regular_17, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_Hello, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->screen_Hello, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->screen_Hello, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_Hello, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->screen_Hello, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->screen_Hello, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->screen_Hello, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->screen_Hello, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->screen_Hello, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_Hello, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes screen_WIFI_Main
    ui->screen_WIFI_Main = lv_img_create(ui->screen);
    lv_obj_add_flag(ui->screen_WIFI_Main, LV_OBJ_FLAG_CLICKABLE);
    lv_img_set_src(ui->screen_WIFI_Main, &_wifi_28x23);
    lv_img_set_pivot(ui->screen_WIFI_Main, 50,50);
    lv_img_set_angle(ui->screen_WIFI_Main, 0);
    lv_obj_set_pos(ui->screen_WIFI_Main, 32, 21);
    lv_obj_set_size(ui->screen_WIFI_Main, 28, 23);

    //Write style for screen_WIFI_Main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_img_recolor_opa(ui->screen_WIFI_Main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_opa(ui->screen_WIFI_Main, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_WIFI_Main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->screen_WIFI_Main, true, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes screen_Bule_Main
    ui->screen_Bule_Main = lv_img_create(ui->screen);
    lv_obj_add_flag(ui->screen_Bule_Main, LV_OBJ_FLAG_CLICKABLE);
    lv_img_set_src(ui->screen_Bule_Main, &_BLUE_28x25);
    lv_img_set_pivot(ui->screen_Bule_Main, 50,50);
    lv_img_set_angle(ui->screen_Bule_Main, 0);
    lv_obj_set_pos(ui->screen_Bule_Main, 184, 21);
    lv_obj_set_size(ui->screen_Bule_Main, 28, 25);

    //Write style for screen_Bule_Main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_img_recolor_opa(ui->screen_Bule_Main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_opa(ui->screen_Bule_Main, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_Bule_Main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->screen_Bule_Main, true, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes screen_Batteery_Main
    ui->screen_Batteery_Main = lv_img_create(ui->screen);
    lv_obj_add_flag(ui->screen_Batteery_Main, LV_OBJ_FLAG_CLICKABLE);
    lv_img_set_src(ui->screen_Batteery_Main, &_battery_27x27);
    lv_img_set_pivot(ui->screen_Batteery_Main, 50,50);
    lv_img_set_angle(ui->screen_Batteery_Main, 0);
    lv_obj_set_pos(ui->screen_Batteery_Main, 60, 203);
    lv_obj_set_size(ui->screen_Batteery_Main, 27, 27);

    //Write style for screen_Batteery_Main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_img_recolor_opa(ui->screen_Batteery_Main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_img_opa(ui->screen_Batteery_Main, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_Batteery_Main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_clip_corner(ui->screen_Batteery_Main, true, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes screen_line_1
    ui->screen_line_1 = lv_line_create(ui->screen);
    static lv_point_t screen_line_1[] = {{0, 0},{142, 0},};
    lv_line_set_points(ui->screen_line_1, screen_line_1, 2);
    lv_obj_set_pos(ui->screen_line_1, 50, 165);
    lv_obj_set_size(ui->screen_line_1, 140, 2);

    //Write style for screen_line_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_line_width(ui->screen_line_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_line_color(ui->screen_line_1, lv_color_hex(0x757575), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_line_opa(ui->screen_line_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_line_rounded(ui->screen_line_1, true, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes screen_arc_1
    ui->screen_arc_1 = lv_arc_create(ui->screen);
    lv_arc_set_mode(ui->screen_arc_1, LV_ARC_MODE_NORMAL);
    lv_arc_set_range(ui->screen_arc_1, 0, 100);
    lv_arc_set_bg_angles(ui->screen_arc_1, 135, 45);
    lv_arc_set_value(ui->screen_arc_1, 70);
    lv_arc_set_rotation(ui->screen_arc_1, 0);
    lv_obj_set_pos(ui->screen_arc_1, 15, 160);
    lv_obj_set_size(ui->screen_arc_1, 121, 116);

    //Write style for screen_arc_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->screen_arc_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->screen_arc_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_width(ui->screen_arc_1, 12, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->screen_arc_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->screen_arc_1, lv_color_hex(0xe6e6e6), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_arc_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->screen_arc_1, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->screen_arc_1, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->screen_arc_1, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->screen_arc_1, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_arc_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for screen_arc_1, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_arc_width(ui->screen_arc_1, 12, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->screen_arc_1, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->screen_arc_1, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT);

    //Write style for screen_arc_1, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->screen_arc_1, 255, LV_PART_KNOB|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->screen_arc_1, lv_color_hex(0x2195f6), LV_PART_KNOB|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->screen_arc_1, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_all(ui->screen_arc_1, 5, LV_PART_KNOB|LV_STATE_DEFAULT);

    //The custom code of screen.


    //Update current screen layout.
    lv_obj_update_layout(ui->screen);

    //Init events for screen.
    events_init_screen(ui);
}

